package com.itheima03.day14;

/**
 * @author 刘全
 * @date 2021/8/6
 */
public class MyThread extends Thread{
    public MyThread() {
        super();
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+"执行了"+i+"次");
        }
    }
}
